package com.fanghuaiming.seata.account.dao.model;

import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/****
 * @description: 账户余额表
 * @version:1.0.0
 * @author fanghuaiming
 * @data Created in 2020/11/27 上午11:16
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SeataTccAccount {

    /**
     * 主键id
     */
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 总金额
     */
    private BigDecimal total;

    /**
     * 已用余额
     */
    private BigDecimal used;

    /**
     * 剩余可用余额
     */
    private BigDecimal residue;

    /**
     * TCC事务锁定的金额
     */
    private BigDecimal frozen;

}
